﻿using Simple.Contracts.Models.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Contracts.Models
{
    internal class AccountModel
    {
    }

    /// <summary>
    /// 登录
    /// </summary>
    public class LoginInput
    {
        public string password {  get; set; }

        public string username {  get; set; }
    }

    /// <summary>
    /// 登录
    /// </summary>
    public class LoginDto
    {
        /// <summary>
        /// 用户Token
        /// </summary>
        public string access_token { get; set; }

        /// <summary>
        /// 当前用户信息
        /// </summary>
        public CurrentAccount userInfo { get; set; }
    }

    /// <summary>
    /// 菜单页面
    /// </summary>
    public class MenuPageDto
    {
        public string component {  get; set; }

        public string name { get; set; }

        public string path { get; set; }

        public MenuPageMetaDto meta {  get; set; }

        public List<MenuPageDto> children { get; set; }

        public string redirect {  get; set; }
    }

    /// <summary>
    /// 菜单页面扩展属性
    /// </summary>
    public class MenuPageMetaDto
    {
        public string icon { get; set; }
        public bool isAffix { get; set; }
        public bool isFull { get; set; }
        public bool isHide { get; set; }
        public bool isKeepAlive { get; set; }
        public string isLink { get; set; }
        public string title { get; set; }
    }

    /// <summary>
    /// 授权功能
    /// </summary>
    public class AuthButtonsDto
    {
        public string[] useProTable { get; set; }
        public string[] authButton { get; set; }
    }
}
